package com.kf.common.mvi.model

import com.google.gson.Gson
import okhttp3.MediaType
import okhttp3.RequestBody

open class BaseModel {

    fun createBody(map: Map<String, Any>): RequestBody {
        val str = Gson().toJson(map)
        return RequestBody.create(
            MediaType.parse("application/json;charset=UTF-8"), str
        )
    }

}